/**
 * User 业务逻辑实现类
 * @author yanwl
 * @date 2014-12-09
 */
package com.chnbst.mbstyun.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.chnbst.mbstyun.dao.UserDao;
import com.chnbst.mbstyun.pojo.User;
import com.chnbst.mbstyun.service.UserService;


@Service
@Transactional(propagation = Propagation.REQUIRED)
@TransactionConfiguration(transactionManager = "txManager", defaultRollback = true)
public class UserServiceImpl implements UserService {

	@Resource
	private UserDao userDao;

	@Override
	public void insertUser(User user) {
		userDao.insertUser(user);
	}

	@Override
	public void deleteUser(User user) {
		userDao.deleteUser(user);
	}

	@Override
	public User TelExists(String tel) {
		return userDao.TelExists(tel);
	}
}
